package com.roncoo.example.resourcebundle;

import java.util.ResourceBundle;

public class DemoResourceBundle {

  public static void main(String[] args) {
    System.out.println(System.getProperty("user.dir"));
    ResourceBundle rb_en = ResourceBundle.getBundle("com.roncoo.example.resourcebundle.hello");
    ResourceBundle rb_zn = ResourceBundle.getBundle("com.roncoo.example.resourcebundle.hello_zn");
    System.out.println("hello= " + rb_en.getString("hello"));
    System.out.println("hello= " + rb_zn.getString("hello"));
  }
}
